#include "Manager.h"

// return expected frames until units are ready
struct LeadTime BasicManager::unitsLeadTime(Request request)
{
	return manager->onUnitTimeQuerry(request);
}

// make the actual request to manager for units
void BasicManager::requestUnits(Request unitRequest)
{
	manager->onUnitRequest(unitRequest);
}

void BasicManager::addArrival(struct arrival arrival)
{
	manager->addArrival(arrival);
}

void BasicManager::start()
{
	enabled = true;
	onStart();
}

void BasicManager::stop()
{
	onStop();
	enabled = false;
}

void BasicManager::think()
{
	if(enabled)
		onThink();
}